package com.itheima.inherit;


import com.itheima.domain.Student1;

public class Test1 {
    public static void main(String[] args) {
        Student1 stu = new Student1();
        stu.setAge(19);
        stu.setName("张三");
        stu.setSex("男");
        System.out.println(stu.getName()+","+stu.getAge()+","+stu.getSex());
        stu.eat();
        stu.drink();
        stu.sleep();
    }
}
